package com.lemon.components.wechart.order.user;

import org.hibernate.validator.constraints.NotBlank;

import com.lemon.components.common.order.ValidateOrderBase;

public class UserAccessTokenOrder extends ValidateOrderBase {
	private static final long serialVersionUID = 8056503239927915026L;
	@NotBlank(message="appid")
	private String appid;
	@NotBlank(message="secret")
	private String secret;
	@NotBlank(message="code")
	private String code;
	private String grantType = "authorization_code";
	@Override
	public void check() {
		validateHasText(appid, "appid不能为空");
		validateHasText(secret, "secret不能为空");
		validateHasText(code, "code不能为空");
	}
	public String getAppid() {
		return appid;
	}
	public void setAppid(String appid) {
		this.appid = appid;
	}
	public String getSecret() {
		return secret;
	}
	public void setSecret(String secret) {
		this.secret = secret;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getGrantType() {
		return grantType;
	}
	@Override
	public String toString() {
		return "UserAccessToken [appid=" + appid + ", secret=" + secret + ", code=" + code + ", grantType=" + grantType + ", toString()=" + super.toString() + "]";
	}
	


}
